//
//  FGAppDelegate.m
//  FGCallKit-pod
//
//  Created by huangchangweng on 04/23/2023.
//  Copyright (c) 2023 huangchangweng. All rights reserved.
//

#import "FGAppDelegate.h"
#import <FGCallKit/FGCallKit.h>

@implementation FGAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    return YES;
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    
    // 因为如果应用退到后台是接收不到来电的，所以需要在应用进入前台时查询一下是否有来电
    [[FGCallKit sharedKit] queryHaveIncoming];
}

@end
